module.exports = {
  presets: ["@vue/cli-plugin-babel/preset"],
  plugins: [
    [
      "babel-plugin-component",
      {
        libraryName: "element-ui",
        styleLibraryName: "theme-chalk",
      },
      "element-ui",
    ],
    // [
    //   "babel-plugin-import",
    //   {
    //     libraryName: "ant-design-vue",
    //     libraryDirectory: "es",
    //     style: "css",
    //   },
    //   "ant-design-vue",
    // ],
    [
      "babel-plugin-import",
      {
        libraryName: "lodash",
        libraryDirectory: "",
        camel2DashComponentName: false, // default: true
      },
      "lodash",
    ],
  ],
};
